import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty } from 'class-validator';
import { ObjectId } from 'mongoose';

export class CreatePhotoDto {
    @ApiProperty()
    @IsNotEmpty({
        message: '标题不能为空',
    })
    title: string;
    @ApiProperty()
    @IsNotEmpty({
        message: '描述不能为空',
    })
    desc: string;
    @ApiProperty()
    @IsNotEmpty({
        message: '请选择一个类型',
    })
    typeId: ObjectId & string;
}
